﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{

    [AutoMapBoth(typeof(NewsComment))]
    [ProtoContract]
    public class NewsCommentDto
    {
        [ProtoMember(1)]
        public int id { get; set; }


        [ProtoMember(2)]
        public int news_id { get; set; }


        [ProtoMember(3)]
        public int parent_id { get; set; }


        [ProtoMember(4)]
        public int user_id { get; set; }


        [ProtoMember(5)]
        public String user_name { get; set; }


        [ProtoMember(6)]
        public String user_ip { get; set; }


        [ProtoMember(7)]
        public String contents { get; set; }


        [ProtoMember(8)]
        public DateTime add_time { get; set; }


        [ProtoMember(9)]
        public int is_lock { get; set; }


        [ProtoMember(10)]
        public int is_reply { get; set; }


        [ProtoMember(11)]
        public String reply_content { get; set; }


        [ProtoMember(12)]
        public DateTime? reply_time { get; set; }


        [ProtoMember(13)]
        public int likes { get; set; }


        [ProtoMember(14)]
        public int dislike { get; set; }


        [ProtoMember(15)]
        public int grade { get; set; }


        [ProtoMember(16)]
        public int channel_id { get; set; }

        [ProtoMember(17)]
        public CustomerDto CustomerItem { get; set; }

        [ProtoMember(18)]
        public NewsDto NewsItem { get; set; }
    }
}
